﻿<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html style="height:100%;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>综合统计报表</title>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui"></t:base>
<script type="text/javascript" src="plug-in/My97DatePicker/WdatePicker.js"></script>
  <script>
   $(document).ready(function(){
      $("#starttime").val(getCurrentMonthFirst().pattern("yyyyMMdd"));
      $("#endtime").val(new Date().pattern("yyyyMMdd"));
        initPage();
      });
      function initPage()
	  {
		var vifrmBirt = document.getElementById("ifrmBirt");
		vifrmBirt.src='frameset?__report=iocountbywings.rptdesign&bymd='+$("#starttime").val()+'&eymd='+$("#endtime").val();
    }
    function getCurrentMonthFirst(){
     var date=new Date();
     date.setDate(1);
     return date;
    }
  </script>
<style>
td{font-size:12px;}
</style>
</head>
<body style="height:100%;">
	<table width="100%" style="height:100%;">
          <tr>
            <td height="30" align="center">
            <table align="left"><tr>
            <td width="80" align="right">开始日期：</td><td width="150"><input type="text" name="starttime" id="starttime" style="width: 150px; height: 24px;" class="Wdate" onFocus="WdatePicker({maxDate:new Date(),dateFmt:'yyyyMMdd',autoPickDate:true,readOnly:true})"></td>
            <td width="80" align="right">结束日期：</td><td width="150"><input type="text" name="endtime" id="endtime" style="width: 150px; height: 24px;" class="Wdate" onFocus="WdatePicker({maxDate:new Date(),dateFmt:'yyyyMMdd',autoPickDate:true,readOnly:true})"></td><td width="80"><span id="year"></span></td><td width="50" align="right"><a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="initPage()">查询</a></td>
            </tr></table>
            </td>
          </tr>
          <tr>
            <td style="height : 100%" align="left" >
            	<iframe id="ifrmBirt" frameborder="0" height="100%" width="100%" scrolling="no" marginheight="0" marginwidth="0" src=""></iframe>
            </td>
          </tr>
    </table>
</body>
</html>